{include file="./layout/header.html" /}
<style>
    .layui-input{
        border: none;
    }
    .layui-form-item{
        margin-bottom: 0px;
    }
    .layui-form{
        overflow: hidden;
    }
</style>
<body>
<div class="x-body" >

    <form class="layui-form" id="intr">

        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>头像
            </label>
            <div class="layui-input-block">
                <img style="width: 80px;height: 80px;" src="{$intr->user->avatar}">
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>昵称
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->nickname}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>姓名
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->first_name}-{$intr->user->member->middle_name}-{$intr->user->member->last_name}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>性别
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->gender_name}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>职称
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->title_name}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>国籍
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->country_name}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>邮箱
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->address}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>联系单位
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->affiliation}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>所在部门
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->department}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>机构名称
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->institution}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>传真
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->fax_number}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>电话
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->phone_number}'>
            </div>
        </div>
        <div class="layui-form-item ">
            <label for="" class="layui-form-label">
                <span class="x-red">*</span>手机
            </label>
            <div class="layui-input-block">
                <input readonly   type="text" id="" name="" required="" lay-verify="required"
                       autocomplete="off" class="layui-input" placeholder="" value='{$intr->user->member->mobile_number}'>
            </div>
        </div>

    </form>
</div>

<!-- 加载编辑器的容器 -->
<script id="container" name="content" type="text/plain">
        这里写你的初始化内容
    </script>
<!-- 引入百度编辑器 -->
<script type="text/javascript" src="__CDN__/lib/ueditor/ueditor.config.js" charset="utf-8"></script>
<script type="text/javascript" src="__CDN__/lib/ueditor/ueditor.all.js" charset="utf-8"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('desc');
    var ue = UE.getEditor("['zh-CN']['content']");
    var ue = UE.getEditor("['en']['content']");
</script>
<script>
    layui.use(['form','layer'], function(){
        $ = layui.jquery;
        var form = layui.form
            ,layer = layui.layer;

        //监听提交
        form.on('submit(add)', function(data){
            var uid = $('#uid').val();
            //发异步，把数据提交给php
            $.ajax({
                dataType : 'json',
                type : 'POST',
                url : '{:url("Conferabout/update")}',
                async: false,
                data : $('#intr').serialize(),
                success : function(msg){
                    layer.alert(msg.msg, {icon: 6},function () {
                        window.parent.location.reload();
                        var index = parent.layer.getFrameIndex(window.name);
                        parent.layer.close(index);
                    });
                },
                error : function(XMLHttpRequest, textStatus, errorThrown) {
                    alert(XMLHttpRequest.status + "," + textStatus);
                }
            });

            return false;
        });
    });

</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>



</body>

</html>